WooCommerce\Square\Gateway C

Total Complexity 125
Dependencies 21
Dependents 4
Total lines 1,098
Lines of code 494
Logical lines of code 238
Comment lines 378
Methods 36
Properties 3

Methods 36

Method Rating Maintainability Complexity Lines of code
restore_refunded_inventory()
A
47 13 33
get_order()
A
45 10 37
init_form_fields()
A
40 8 62
get_order_for_refund()
A
49 9 27
enqueue_gateway_assets()
S
59 7 13
do_transaction()
S
51 6 26
validate_fields()
S
55 6 19
store_new_order_item_square_meta()
S
58 5 16
get_order_meta()
S
64 6 9
add_digital_wallets_form_fields()
S
42 1 62
is_digital_wallet_available()
S
64 5 8
add_card_types_form_fields()
S
62 4 11
add_payment_gateway_transaction_data()
S
64 4 10
wc_ajax_square_checkout_validate()
S
61 3 13
get_order_with_unique_transaction_ref()
S
61 3 12
__construct()
S
49 1 34
enqueue_payment_form_assets()
S
71 3 6
log_js_data()
S
64 3 8
is_available()
S
78 3 3
get_order_for_add_payment_method()
S
67 3 7
get_payment_form_instance()
S
71 2 6
wc_ajax_square_checkout_handler()
S
66 2 7
get_application_id()
S
68 2 7
get_guest_customer_id()
S
69 2 7
get_api()
S
68 2 7
add_tokenization_form_fields()
S
66 2 8
add_csc_form_fields()
S
82 1 3
get_order_for_capture()
S
70 1 6
get_method_form_fields()
S
82 1 3
get_customer_id()
S
75 1 4
is_3d_secure_enabled()
S
71 1 5
get_environment()
S
81 1 3
tokenize_before_sale()
S
82 1 3
csc_enabled()
S
82 1 3
build_payment_tokens_handler()
S
80 1 3
get_authorization_time_window()
S
82 1 3